package com.woniu.sharepark.leasesystem.common.controller;

import com.woniu.sharepark.common.JsonResult;

import com.woniu.sharepark.leasesystem.common.dto.IDCardDTO;
import com.woniu.sharepark.common.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: IDCardController
 * @Description: 此类是前端传递身份证识别信息的Controller
 * @Author: Zongjie.Li
 * @Date: 2019/6/3
 * @Version: 1.0
 **/

/**
 *
 * 修改类的描述，更正为用户信息Controller
 *
 * @ClassName: IDCardController
 * @Description: 此类是用户信息的Controller
 * @Author: Zongjie.Li
 * @Date: 2019/6/6
 * @Version: 1.1
 **/
@Controller
@RequestMapping("/userinfo")
public class UserInformationController {

    @Autowired
    private UserInfoService userInfoServiceImpl;

    @ResponseBody
    @RequestMapping("/adduserinfo")
    public JsonResult addIDCard(IDCardDTO idCardDTO){
        return userInfoServiceImpl.addIDCard(idCardDTO);
    }


}
